namespace Altairis.FluffyCloud.Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class RecordingIpAddresses : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Messages", "IpAddress", c => c.String(maxLength: 39));
            AddColumn("dbo.Users", "RegistrationIpAddress", c => c.String(maxLength: 39));
            AddColumn("dbo.Users", "LastLoginIpAddress", c => c.String(maxLength: 39));
            AddColumn("dbo.TopicPosts", "IpAddress", c => c.String(maxLength: 39));
            CreateIndex("dbo.TopicPosts", "DateCreated");
        }
        
        public override void Down()
        {
            DropColumn("dbo.TopicPosts", "IpAddress");
            DropColumn("dbo.Users", "LastLoginIpAddress");
            DropColumn("dbo.Users", "RegistrationIpAddress");
            DropColumn("dbo.Messages", "IpAddress");
            DropIndex("dbo.TopicPosts", "DateCreated");
        }
    }
}
